package com.ourteam.workspace.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2018-11-30 16:50:09
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class WorkspaceBuildLogBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.workspace.dao.WorkspaceBuildLog workspaceBuildLog;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(workspaceBuildLog);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.workspace.dao.IWorkspaceBuildLogDAO.Id);
		
																																		
				
																																
				
																
		mappedDaoFields.put("workspaceBuildConfigId",com.ourteam.workspace.dao.IWorkspaceBuildLogDAO.WorkspaceBuildConfigId);
		
																														
				
																																
				
																				
		mappedDaoFields.put("buildTime",com.ourteam.workspace.dao.IWorkspaceBuildLogDAO.BuildTime);
		
																										
				
																																
				
																								
		mappedDaoFields.put("buildLog",com.ourteam.workspace.dao.IWorkspaceBuildLogDAO.BuildLog);
		
																						
				
																																
				
																												
		mappedDaoFields.put("buildResult",com.ourteam.workspace.dao.IWorkspaceBuildLogDAO.BuildResult);
		
																		
				
																																
				
																																
		mappedDaoFields.put("buildOutputPath",com.ourteam.workspace.dao.IWorkspaceBuildLogDAO.BuildOutputPath);
		
														
				
																																
				
																																				
		mappedDaoFields.put("status",com.ourteam.workspace.dao.IWorkspaceBuildLogDAO.Status);
		
										
				
																																
				
																																								
		mappedDaoFields.put("remarks",com.ourteam.workspace.dao.IWorkspaceBuildLogDAO.Remarks);
		
						
				
																																
				
																																						
				
						
		mappedDaoFields.put("productionName",com.ourteam.workspace.dao.IWorkspaceBuildLogDAO.ProductionName);
																												
				
																																						
				
														
		mappedDaoFields.put("productionType",com.ourteam.workspace.dao.IWorkspaceBuildLogDAO.ProductionType);
																				
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public WorkspaceBuildLogBean() {
		super();
	    		
		this.workspaceBuildLog = new com.ourteam.workspace.dao.WorkspaceBuildLog();
                
	}
	
		
	public WorkspaceBuildLogBean(com.ourteam.workspace.dao.WorkspaceBuildLog workspaceBuildLog) {
		super();
	
		this.workspaceBuildLog = workspaceBuildLog;
		
	}
		
		
		
    	
	public com.ourteam.workspace.dao.WorkspaceBuildLog convertToWorkspaceBuildLog(){
		return this.workspaceBuildLog;
	}
	
	public com.ourteam.workspace.dao.WorkspaceBuildLog convertTo(){
		return this.workspaceBuildLog;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.workspaceBuildLog.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.workspaceBuildLog.setId(id);
	}
		
																	
			
																	
		
		
					
			
		
	/**
	 * Get workspaceBuildConfigId
	 * 
	 * @return long
	 */
	public long getWorkspaceBuildConfigId(){
		return (long) this.workspaceBuildLog.getWorkspaceBuildConfigId();
	}
	
	/**
	 * Set workspaceBuildConfigId
	 * 
	 * @parameter long
	 */
	public void setWorkspaceBuildConfigId(long workspaceBuildConfigId){
		
		this.workspaceBuildLog.setWorkspaceBuildConfigId(workspaceBuildConfigId);
	}
		
															
			
																	
		
		
							
			
		
	/**
	 * Get buildTime
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getBuildTime(){
		return (java.util.Date) this.workspaceBuildLog.getBuildTime();
	}
	
	/**
	 * Set buildTime
	 * 
	 * @parameter java.util.Date
	 */
	public void setBuildTime(java.util.Date buildTime){
		
		this.workspaceBuildLog.setBuildTime(buildTime);
	}
		
													
			
																	
		
		
									
			
		
	/**
	 * Get buildLog
	 * 
	 * @return String
	 */
	public String getBuildLog(){
		return (String) this.workspaceBuildLog.getBuildLog();
	}
	
	/**
	 * Set buildLog
	 * 
	 * @parameter String
	 */
	public void setBuildLog(String buildLog){
		
		this.workspaceBuildLog.setBuildLog(buildLog);
	}
		
											
			
																	
		
		
											
			
		
	/**
	 * Get buildResult
	 * 
	 * @return String
	 */
	public String getBuildResult(){
		return (String) this.workspaceBuildLog.getBuildResult();
	}
	
	/**
	 * Set buildResult
	 * 
	 * @parameter String
	 */
	public void setBuildResult(String buildResult){
		
		this.workspaceBuildLog.setBuildResult(buildResult);
	}
		
									
			
																	
		
		
													
			
		
	/**
	 * Get buildOutputPath
	 * 
	 * @return String
	 */
	public String getBuildOutputPath(){
		return (String) this.workspaceBuildLog.getBuildOutputPath();
	}
	
	/**
	 * Set buildOutputPath
	 * 
	 * @parameter String
	 */
	public void setBuildOutputPath(String buildOutputPath){
		
		this.workspaceBuildLog.setBuildOutputPath(buildOutputPath);
	}
		
							
			
																	
		
		
															
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.workspaceBuildLog.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.workspaceBuildLog.setStatus(status);
	}
		
					
			
																	
		
		
																	
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.workspaceBuildLog.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.workspaceBuildLog.setRemarks(remarks);
	}
		
			
			
																	
		
		
																		
			
			
			
		
	/**
	 * Get productionName
	 * 
	 * @return String
	 */
	public String getProductionName(){
		
		return (String) this.workspaceBuildLog.getProductionName();
			
	}
	
															
		
		
																		
			
							
			
		
	/**
	 * Get productionType
	 * 
	 * @return String
	 */
	public String getProductionType(){
		
		return (String) this.workspaceBuildLog.getProductionType();
			
	}
	
											
		
			
			
			
			
			
			
			
			
			
			
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof WorkspaceBuildLogBean) == false) {
            return false;
        } // end if

        WorkspaceBuildLogBean other = (WorkspaceBuildLogBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.workspace.dao.WorkspaceBuildLog tempWorkspaceBuildLog = other.convertToWorkspaceBuildLog();
        
        if(tempWorkspaceBuildLog == null || this.workspaceBuildLog == null){
        	isEqual = false;
        }
        else if(tempWorkspaceBuildLog == this.workspaceBuildLog || tempWorkspaceBuildLog.equals(this.workspaceBuildLog) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static WorkspaceBuildLogBean[] toArray(com.ourteam.workspace.dao.WorkspaceBuildLog[] aWorkspaceBuildLogs){
		
		return toArray(aWorkspaceBuildLogs,null);
	}
	
	public static WorkspaceBuildLogBean[] toArray(com.ourteam.workspace.dao.WorkspaceBuildLog[] aWorkspaceBuildLogs , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aWorkspaceBuildLogs)){
		 	return new WorkspaceBuildLogBean[0];
		 }
		 
		 int length = aWorkspaceBuildLogs.length;
		 
		 WorkspaceBuildLogBean[] beans = new WorkspaceBuildLogBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new WorkspaceBuildLogBean(aWorkspaceBuildLogs[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aWorkspaceBuildLogs[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}